package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.PathVariable;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);
    /*
    * 添加员工
    * */

    Result<Object> add(EmployeeDTO employeeDTO);

    /**
     * 分页查询
     * @param dto
     * @return
     */
    public Result page(EmployeePageQueryDTO dto);


    /**
     * 禁用
     * @param status
     * @param id
     * @return
     */
    public  Result updateEmpStatus( Integer status, Long id);


    public Result updateEmp( EmployeeDTO dto);

    public Result<Employee> getEmpById( Long id);


}
